package io.renren.modules.testrestful.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.testrestful.entity.User;
import io.renren.modules.testrestful.service.impl.UsersServiceImpl;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.client.RestTemplate;

import java.util.List;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2022-08-18 11:55:21
 */
@Mapper
public interface UsersDao extends BaseMapper<User> {

    User getUsers(String id);

    List<User> getUsersList();

    int postUsers(User users);
    int postDevices(User user);

    String putUsers(String id, User users);

    String deleteUsers(String id);


    int countById(String username);


//    int saveMysql();
}
